Import Tag

Objective

To import external images using URLs or file locations retrieved from a database.

Background Information

The import tag can be used for more than just importing images. It can import entire templates, text documents, Word documents, and PDF documents. Here we'll go over importing images, but importing other files is nearly identical.

Pre-requisites

Inserting a Tag, Connecting to your XML data

Starting Template

Before starting this tutorial, please follow the Creating an XML Datasource tutorial, and use the file "Images - Data.xml" which can be found in Documents/AutoTag/data if you chose to install the samples when you installed AutoTag.

Procedure

1. Insert an Import Tag

Show Me How!

2. Select name1 as the Data

The name1 column/node in the sample datasource contains a filename of a local filename. This file can also be found in the Documents/AutoTag/data directory. If they aren't, you can paste the following into the value field: " 'http://www.windward.net/images/logo.png " The value field is above the Data tree. Make sure you include the single quote at the beginning.

Show Me How!

3. Evaluate and View Results

Click the Evaluate button in the AutoTag ribbon to view the results of the import tag.

Show Me How!

Quiz Yourself!

True/False: The import tag behaves similarly to the out tag, except it uses its data to retrieve an external file
True.
False. The import tag imports files that were stored directly in the database.
False. The import tag does not use the database to retrieve files.

Congratulations!

You have completed this tutorial. We recommend taking a look at the Link tag tutorial next!

close
continue